package com.itheima.dao;


import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Param;





import com.github.pagehelper.Page;

import com.itheima.pojo.OrderSetting;
import com.itheima.pojo.Order;

import java.util.List;
import java.util.Map;

public interface OrderDao {


    public void add(Order order);

    public List<String> findDays(String beginDate, String endDate);

    public String findOrderCount(String day1);

    public String findOrderCountByDay(String day2);

    //有关套餐收入
    public List<String> findSetMealIds(String beginDate, String endDate);

    public Integer getCountSetmealId(@Param("beginDate") String beginDate, @Param("endDate") String endDate, @Param("setmealId1") String setmealId1);

    public List<Order> findByCondition(Order order);
    public Map findById4Detail(Integer id);
    public Integer findOrderCountByDate(String date);
    public Integer findOrderCountAfterDate(String date);
    public Integer findVisitsCountByDate(String date);
    public Integer findVisitsCountAfterDate(String date);
    public List<Map> findHotSetmeal();


    List<Order> findCountById(Integer id);

    List<Order> findDate(@Param("id") Integer id,@Param("startTime") String startTime,@Param("endTime") String endTime);

    Page<Map> findOrdersPage(Map map);

    void delete(Integer id);

    void edit(Order order);

    void switchStatusChange(@Param("id") Integer id, @Param("orderStatus") String orderStatus);
}
